module.exports = ({ env }) => ({
	upload: {
		config: {
			provider: "strapi-provider-upload-tencent-cloud-storage",
			providerOptions: {
				CDNDomain: "https://yuimg.xhuiteng.com",
				SecretId: env("COS_SecretId"),
				SecretKey: env("COS_SecretKey"),
				Region: env("COS_Region"),
				Bucket: env("COS_Bucket"),
			},
		},
	},
	transformer: {
		enabled: true,
		config: {
			prefix: "/api/",
			responseTransforms: {
				removeAttributesKey: true,
				removeDataKey: true,
			},
		},
	},
});
